﻿using System;
using Sustainalytics.Utils;

namespace Sustainalytics.CompanyScreening.Exceptions
{
    public class FilterValidationException : Exception
    {
        public FilterValidationException() { }
        public FilterValidationException(int code, string message) : base(message) { InternalCode = code; }

        public FilterValidationException(int code, string message, Exception ex) : base(message, ex) { InternalCode = code; }

        public int InternalCode
        {

            get;
            set;
        }

    }

    public  static class FilterValidationErrorCodes
    {
        public const int DuplicateSharedName = 1;
        public const int DuplicatePrivateName = 2;
        public const int NullOrEmptyName = 3;
    }
}
